package com.ruoyi.vim.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.api.vo.FenceInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FenceMapper extends BaseMapper<FenceInfo> {

    void add(@Param("fe") FenceInfo fenceInfo);

    boolean deleteByid(Integer fenceId);

    List<FenceInfo> select(FenceInfo fenceInfo);

    boolean updates(@Param("fe") FenceInfo fenceInfo);

    List<FenceInfo> selectAllFence();

    FenceInfo selectId(Integer fenceId);

    List<FenceInfo> selectPages(Integer page, Integer limit);

    Long selectCountPage();

}
